<?php
class PanoramioService {
	
	const URI = "http://www.panoramio.com/map";
	const HTTP_METHOD = "GET";
	
	public function PanoramioService() {
		
	}
	
	public function call($method, $params) {
		$client = new Zend_Http_Client();
		$client->setUri(self::URI . '/' . $method);
		
		foreach($params as $k=>$v) {
			$client->setParameterGet($k, $v);
		}
		$result = $client->request(self::HTTP_METHOD);
		return Zend_Json_Decoder::decode($result->getBody());
	}
}

?>